//
//  ViewController.m
//  链表
//
//  Created by Rocky on 15/3/18.
//  Copyright (c) 2015年 Rocky. All rights reserved.
//

#import "ViewController.h"
#import "MyItemList.h"
#import "MyItem.h"
//
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    MyItemList *myItemList = [[MyItemList alloc]init];
    for (int i = 0; i<5; i++)
    {
        MyItem *item = [[MyItem alloc ]init];
        item.name = [NSString stringWithFormat:@"item1_%i",i] ;
        [myItemList addMyItem:item];
    }
    //MyItem *currentItem  = [myItemList getMyItemByName:@"item1_4"];
//
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
